package com.shengzai.Jedis;

import redis.clients.jedis.Connection;
import redis.clients.jedis.Jedis;

import java.util.Set;

public class Code1JedisConnect {
    public static void main(String[] args) {

        Jedis jedis = new Jedis("192.168.146.136", 6379);

        String ping = jedis.ping();

        System.out.println("连接成功"+ping);

        jedis.close();
    }
}
